<template>
    <h3>我是组件b</h3>

    <button @click="handleClick">按钮</button>
</template>

<script setup>
import Mitt from './mitt'
const handleClick = () => {
  Mitt.emit('handleChange')   //接收
}
</script>